<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/validateEngine/jquery.validationEngine.min.js',2); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/validateEngine/jquery.validationEngine-zh_CN.js',2); ?>
<?php Yii::app()->clientScript->registerCssFile(Yii::app()->params['static'].'assets/css/validationEngine.jquery.css'); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/bootbox.min.js',2); ?>
<div class="page-header">
							<h1>
					       	添加学生报名
							</h1>
</div>
<div class="row">
	<div class="col-xs-12">
		<div class="row">
			<div class="col-xs-12">
				<form class="form-horizontal" role="form" method="post" action="<?php echo Yii::app()->createUrl('activity/addactivity'); ?>">
                                    <div class="form-group">
										<label class="col-sm-4 control-label no-padding-right" for="form-field-6">活动名称：</label>

										<div class="col-sm-4">
											<input  type="text" class="form-control validate[required]" placeholder="活动名称" title="" name="name">
											
										</div>
									</div>
									 <div class="form-group">
										<label class="col-sm-4 control-label no-padding-right" for="form-field-6">额定参加人数：</label>

										<div class="col-sm-4">
											<input  type="text" class="form-control validate[required,custom[integer]]" placeholder="额定参加人数(数字)" title="" name="stunum">
											
										</div>
									</div>
									<div class="form-group">
									<div class="col-sm-4 col-sm-offset-4">
										<div class="widget-box">
											<div class="widget-header widget-header-flat">
												<h4 class="smaller">
													活动内容
												</h4>
											</div>

											<div class="widget-body">
												<div class="widget-main">
													
													<div class="row">
														<div class="col-xs-12">
															<textarea col="23" rows="10" class="form-control validate[required]" name="content"  placeholder="根据活动要求和和活动内容，在此处填写相关信息"></textarea>
														</div>
													</div>

												</div>
											</div>
										</div>
									</div>
									</div>

								

									<div class="space-4"></div>
                                    <div class="form-group">
										<div class="col-sm-4 col-sm-offset-4">
										<div class="widget-box">
											<div class="widget-header widget-header-flat">
												<h4 class="smaller">
													活动要求
												</h4>
											</div>

											<div class="widget-body">
												<div class="widget-main">
													
													<div class="row">
														<div class="col-xs-12">
															<textarea col="23" rows="10" class="form-control validate[required]" name="requirement"  placeholder="根据活动要求和和活动内容，在此处填写相关信息"></textarea>
														</div>
													</div>

												</div>
											</div>
										</div>
									</div>
									</div>
									<div class="space-4"></div>
                                   <div class="clearfix form-actions">
										<div class="col-md-offset-5 col-md-7">
											<button class="btn btn-info" type="submit">
												<i class="icon-ok bigger-110"></i>
												提交
											</button>

											
										</div>
									</div>

								
					</form>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	  jQuery(function($){
		  
        <?php
		    if(Yii::app()->user->hasFlash('add')){
				echo 'bootbox.alert("'.Yii::app()->user->getFlash('add').'",function(){});';
				
			}
		?> 

		  //begin the validate
		  $(".form-horizontal").validationEngine("attach",{ 
				promptPosition:"topRight", 
				scroll:true,
				validateNonVisibleFields:false,
		  }); 
		  
		  
	  });
	</script>